function checkFeedbackForSending(){
	
	var descriptionLength = window.document.forms['DetailView'].elements['descriptionLength'].value
	var feedbackPointCount = window.document.forms['DetailView'].elements['feedbackPointCount'].value
	var emailCount = window.document.forms['DetailView'].elements['emailCount'].value
	
	if(descriptionLength == 0){ 
		alert("There is no feedback content. Please construct feedback first");
		return false;
	}

	return (emailCount == 0) || confirm("Email has already been recorded against this feedback item. OK to continue?");

}

/**
 * Check button SendFeedback, if email count is zero which make a confirm message or message to remind. 
 **/
function checkSendFeedbackForSending(){
	var descriptionLength = window.document.forms['DetailView'].elements['descriptionLength'].value
	var emailCount = window.document.forms['DetailView'].elements['emailCount'].value
	
	if(descriptionLength == 0){ 
		alert("There is no feedback content. Please construct feedback first");
		return false;
	}
	if(emailCount == 0  && confirm("Are you sure you want to send this email?")){
		return true;
	}
	if(emailCount != 0 ){
		return confirm("Email has already been recorded against this feedback item. OK to continue?");
	}
}

